home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / rt800 / balls.scn < prev    next >
Text File  |  1992-03-20  |  2KB  |  93 lines

  1. %
  2. %
  3. %  multiple colored balls over a plain
  4. %  author: Barry T. Drake, Occidental College Computer Center
  5. %  e-mail: bdrake@oxy.edu
  6. %  date: 7/23/91
  7. %  thanks-to: C. Regis Wilson, t_pascal@oxy.edu
  8. %  modified: ajones, 072391, fixed the mirrored surface appearance
  9. %            BTD, 072491, added colors and made it *big*
  10. %  notes: 1) This ray file takes ~30,000 cpu seconds to trace on
  11. %            a Sun 4/280 (a 10 Mips machine).
  12. %         2) The idea for this came from a Sun .background that we ftp'd
  13. %            from someplace whose name we lost (sorry!).
  14. %         3) Changing screen to 100 100 and depth to 2 decreases
  15. %            trace time to 2000 cpu seconds on a 68030 (NeXT cube).
  16. %         4) If you want better shadows of the pyramid, try decreasing
  17. %            the reflectivity of surface.
  18. %         5) I think this is a lot of fun.  Thanks, Craig!
  19. eye -8 -20 6
  20. look 0 0 6
  21. up 0 0 1
  22. fov 30
  23. light extended -8 -10 20 mono 2.5 2.5 8
  24.  
  25. %%surfaces
  26. #define mirror\
  27. surface 0.4 0.4 0.4 0.05 0.05 0.05 0.9 0.9 0.9 60 0.8
  28.  
  29. #define redmirror\
  30. surface 0.8 0.00 0.00 0.15 0.00 0.00 0.9 0.9 0.9 60 0.8
  31.  
  32. #define blumirror\
  33. surface 0.00 0.00 0.8 0.00 0.00 0.15 0.9 0.9 0.9 60 0.8
  34.  
  35. #define grnmirror\
  36. surface 0.00 0.8 0.00 0.00 0.15 0.00 0.9 0.9 0.9 60 0.8
  37.  
  38. #define whitesurf\
  39. surface 0.6 0.6 0.4 0.8 0.8 0.8 0.2 0.2 0.2 18 0.1
  40.  
  41. %% plane
  42. quadrangle
  43.   marble scale 4 4 4
  44.   transform scale 1000
  45.   whitesurf
  46. data 1 1 0 -1 1 0 -1 -1 0 1 -1 0
  47.  
  48. %% balls
  49. blumirror
  50. sphere 0 0.1 6 1
  51. sphere 1 -5 8 1
  52. sphere 2 0.1 4 1
  53. sphere 3 -5 6 1
  54. sphere 5 -1.6 4 1
  55. sphere 5 -5 4 1
  56. sphere 5 -8.4 4 1
  57. sphere 7 -5 8 1
  58. grnmirror
  59. sphere 0 -3.3 6 1
  60. sphere 2 -6.7 4 1
  61. sphere 3 -8.4 6 1
  62. sphere 4 -3.3 8 1
  63. sphere 5 -5 10 1
  64. sphere 9 -5 6 1
  65. mirror
  66. sphere -1 -11.8 4 1
  67. sphere -1 -5 4 1
  68. sphere -1 -8.4 4 1
  69. sphere -1 1.8 4 1
  70. sphere 0 -10.1 6 1
  71. sphere 0 -6.7 6 1
  72. sphere 0 15 11 10
  73. sphere 1 -1.6 8 1
  74. sphere 2 -10.1 4 1
  75. sphere 2 -3.3 4 1
  76. sphere 2 -6.7 10 1
  77. sphere 3 -1.6 6 1
  78. sphere 3 -5 12 1
  79. sphere 4 -6.7 8 1
  80. sphere 6 -3.3 6 1
  81. sphere 6 -6.7 6 1
  82. sphere 8 -3.3 4 1
  83. sphere 8 -6.7 4 1
  84. redmirror
  85. sphere -7.5 -1 1.001 1 % this is the fallen ball
  86. sphere 1 -8.4 8 1
  87. sphere 11 -5 4 1
  88. sphere 2 -3.3 10 1
  89.